﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 微信用户的formID（用来推送消息）
	/// </summary>
	[Table("WX_Session")]
	public partial class WX_Session
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("AppID")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("OpenID")]
		[StringLength(128, ErrorMessage = "{0}长度不能超过{1}")]
		public string OpenID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("UnionID")]
		[StringLength(128, ErrorMessage = "{0}长度不能超过{1}")]
		public string UnionID { get; set; }

		/// <summary>
		/// 过期时间
		/// </summary>
		[Column("ExpireDate")]
		public DateTime ExpireDate { get; set; }

		/// <summary>
		/// 生成时间
		/// </summary>
		[Column("AddDate")]
		public DateTime AddDate { get; set; }

		/// <summary>
		/// 状态
		/// </summary>
		[Column("StateNow")]
		public int StateNow { get; set; }
	}
}
